import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import commData from './components/commData'
import Navi from './components/Navi/Navi.vue'
import login from './components/Login/Login.vue'
import httpRequest from './util/httpUtil/httpUtils'
import router from './router/index.js'
import axios from 'axios'
import echarts from 'echarts'
import VueDragResize from 'vue-drag-resize'
import store from './store/index.js'


Vue.use(ElementUI)
Vue.prototype.$httpRequest = httpRequest
Vue.prototype.$echarts = echarts
Vue.prototype.axios = axios
Vue.prototype.commData = commData.apiUrl
Vue.component('vue-drag-resize', VueDragResize)

//程序入口进入时候显示的组件
new Vue({
	router,
	el: '#app',
	store,
//	template: '<App/>',
//	components: {
//		App
//	}
render: h => h(App)
})